<%-- 
    Document   : addAuthor
    Created on : 20.4.2011, 20:44:35
    Author     : Riema
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
    <head>
        <jsp:include page="../WEB-INF/jspf/header.jsp" >
            <jsp:param name="title" value="Add Author" />
        </jsp:include>
    </head>
    <body>
        <jsp:include page="../WEB-INF/jspf/beforeWork.jsp" >
            <jsp:param name="addAuthor" value="" />
        </jsp:include>

        <c:if test="${not empty error}">
            <div id="error">
                <c:out value="${error}"/>
            </div>
        </c:if>

        <form action="${pageContext.request.contextPath}/AddAuthor" method="post">
            <h3>Please enter information about new author:</h3>
            <table>
                <tr>
                    <th>Name</th>
                    <td><input type="text" name="name" value="${author.name}"/></td>
                </tr>
                <tr>
                    <th>Surname*</th>
                    <td><input type="text" name="surname" value="${author.surname}"/></td>
                </tr>
                <tr>
                    <th>Born</th>
                    <td><input type="text" name="born" value="${born}"/>accepted format: dd-MM-yyyy</td>
                </tr>
                <tr>
                    <th>Died</th>
                    <td><input type="text" name="died" value="${died}"/>accepted format: dd-MM-yyyy</td>
                </tr>
            </table>
            <p><input type="Submit" value="Add author" /></p>
        </form>
        <p><img src="http://www.appsitehost.com/common/images/required_alt.gif" alt="*" />required</p>
        <p>dd-MM-yyyy eg. 23-11-2001<br />
        dd - day (in month)<br />
        MM - month (number)<br />
        yyyy - year</p>

        <jsp:include page="../WEB-INF/jspf/afterWork.jsp" />
    </body>
</html>